package com.yuanian.wf.controller;

import com.yuanian.wf.pojo.dto.StartProcessDto;
import com.yuanian.wf.service.ProcessService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/wf")
public class ProcessController {

    @Autowired
    private ProcessService processService;
    /**
     * 开始流程
     */
    @PostMapping("/startProcess")
    public void startProcess(@RequestBody StartProcessDto startProcessDto) {
        processService.startProcess(startProcessDto);
    }

}
